package com.orphan.util.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户订单")
public class OrderDto implements Serializable {
    @ApiModelProperty("订单编号")
    private String orderId;
    @ApiModelProperty("用户编号")
    private Integer userId;
    @ApiModelProperty("总金额")
    private float totalAmount;
    @ApiModelProperty("收货人")
    private String consignee;
    @ApiModelProperty("收货人电话")
    private String consigneeTel;
    @ApiModelProperty("订单地址")
    private String orderAddress;
    @ApiModelProperty("订单时间")
    private Date orderTime;
    @ApiModelProperty("支付方式：1 现金  2 支付宝  3 微信  4 预付款")
    private Integer payMethod;
    @ApiModelProperty("订单状态：0 正常")
    private Integer orderStatus;
    @ApiModelProperty("支付状态：2 已付款；3 缺货；4 付款失败； 5 交易完成")
    private Integer payStatus;
    @ApiModelProperty("商品详情")
    private List<OrderGoodsDto> goodsList;

}
